package cn.iocoder.yudao.module.digital.controller.admin.csc.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 软著 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CscRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6516")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "软著名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("软著名称")
    private String name;

    @Schema(description = "著作权编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("著作权编号")
    private String no;

    @Schema(description = "所属单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "所属单位", converter = DictConvert.class)
    @DictFormat("affiliation") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer affiliation;

    @Schema(description = "登记号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("登记号")
    private String registrationNum;

    @Schema(description = "出版日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("出版日期")
    private LocalDateTime publicationTime;

    @Schema(description = "软著类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "软著类型", converter = DictConvert.class)
    @DictFormat("CSC_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer cscType;

    @Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("作者")
    private String author;

    @Schema(description = "贡献率", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("贡献率")
    private String rate;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved1;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved2;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved3;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved4;

    @Schema(description = "保留字段")
    @ExcelProperty("保留字段")
    private String reserved5;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "佐证地址", example = "https://www.chanchat.cn")
    private String evidenceUrl;

}